package entity

import (
	"cooke-home/common/model/base_entity"
)

type TaskEntity struct {
	base_entity.BaseEntity
	TaskID        int64   `gorm:"primaryKey;autoIncrement" json:"task_id"`
	ParentID      int64   `gorm:"index:idx_parent_id" json:"parent_id"`
	TaskName      string  `gorm:"type:varchar(255)" json:"task_name"`
	Content       string  `gorm:"type:varchar(255)" json:"content"`
	CommodityName string  `gorm:"type:varchar(255)" json:"commodity_name"`
	Number        int     `gorm:"type:varchar(255)" json:"number"`
	Price         float64 `gorm:"type:varchar(255)" json:"price"`
	Unit          int     `gorm:"type:varchar(255)" json:"unit"`
	IsComplete    int8    `gorm:"column:is_complete;default:1" json:"is_complete"`
}
